# frozen_string_literal: true

class Api::V2::SteemController < Api::BaseController
  include ReverseProxy::Controller
  def index
    reverse_proxy CHAIN_URL do |config|
      # We got a 404!
      config.on_missing do |code, response|
        redirect_to root_url and return
      end

      # There's also other callbacks:
      # - on_set_cookies
      # - on_connect
      # - on_response
      # - on_set_cookies
      # - on_success
      # - on_redirect
      # - on_missing
      # - on_error
      # - on_complete
    end
  end
end
